﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Manager.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
<%@ Import Namespace="B2B.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

<h2>CreateOrder</h2>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="HEAD" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="main_content" runat="server">
    <%
        SP_TimKiemBaoGia_Ma timKiemBaoGia = (SP_TimKiemBaoGia_Ma)ViewData["baoGia"];
        string gia = timKiemBaoGia.Gia;
        string tenSP = timKiemBaoGia.TenSP;
        string dvt = timKiemBaoGia.TenDVT;
        string link = timKiemBaoGia.Link;
        string maBG = timKiemBaoGia.MaBaoGia.ToString();
    %>
    <form action="/Manage/CreateOrder/<%=maBG %>" method="POST">
        <input type="hidden" name="gia" value="<%=gia %>" />
        <input type="hidden" name="maBaoGia" value="<%=maBG %>" />
       
        <table>
            <tr>
                <td>Product name</td>
                <td><a href="<%=link %>"> <%=tenSP %> </a></td>
            </tr>
            <tr>
                <td>FOB Price: </td>
                <td><%=gia %> VND</td>
            </tr>
            <tr>
                <td>Số lượng đặt: </td>
                <td><input type="text" name="soLuongDat" /> <%=dvt %></td>
            </tr>
            <tr>
                <td>Total amount: </td>
                <td><div id="divTongTien"></div></td>
            </tr>
            <tr>
                <td><input type="submit" value="Create"</td>
            </tr>
        </table>
    </form>
</asp:Content>
